import {
	fetch,
	fetchIP,
	fetchOther,
	fetchWithToken
} from '../utils/request'
// 现在引入我们的 request.js
// 接口
// 获取应用版本信息
// export function getData(data) {
// 	return fetch(data, {
// 		url: '/Service_Android.asmx/DeptInfo',
// 		method: 'get',
// 		header: {
// 			"Content-Type": "application/x-www-form-urlencoded",
// 			"Token": uni.getStorageSync('token')
// 		}
// 	})
// }

const them = uni.getSystemInfoSync().platform === 'android' ? '/' : '/api/'

// 登录接口
export function Common_CheckUsePassword(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Common_CheckUsePassword`,
		method: 'get',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 扫描获取密码
export function ScanLogin(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/ScanLogin`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 获取科室
export function getLoginBaseInfo(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/getLoginBaseInfo`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//扫描获取病人信息
export function ScanPatientinfo(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/ScanPatientinfo`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 通过手环获取病人病历号PcaseIotcode
export function PcaseIotcode(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PcaseIotcode`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 手环绑定结果
export function BindBraceletReally(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/BindBraceletReally`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//手环解绑
export function BindBraceletUnbind(data) {
	
	return fetch(data, {
		url: `${them}Service_Android.asmx/BindBraceletReallyUnbindLable`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// ScanRFID
export function ScanRFID(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/ScanRFID`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 仪器绑定和病人信息
export function BindEquipBed(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/BindEquipBed`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 6-7楼(产科)XS-管理员
export function Ward_GetPatBedList_IIS(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Ward_GetPatBedList_IIS`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//输入护士编号获取护士详情
export function EmpInfo(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EmpInfo`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 病人基本信息
export function Ward_GetPatBedNurseCard(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Ward_GetPatBedNurseCard`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//母乳核对
export function MuruHeduiData(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/MuruHeduiData`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 报告查询
export function Lis_Data_Get(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Lis_Data_Get`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 报告查询明细
export function Lis_DataDetail_Get(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Lis_DataDetail_Get`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 费用查询 FeiYongChaXun
export function FeiYongChaXun(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/FeiYongChaXun`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 医嘱查询 
export function SearchYZ(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/SearchYZ`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 医嘱执行记录 EMR_Nursing_OrderdoList
export function EMR_Nursing_OrderdoList(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_OrderdoList`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 任务清单 Order_Get_Order_List
export function Order_Get_Order_List(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Order_Get_Order_List`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// Scan_yizhu_list
export function Scan_yizhu_list(data) {
	return fetch(data, {
		url: `${them}/Service_Android.asmx/Scan_yizhu_list`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//Scan_get_PatientInfo_V1
export function Scan_get_PatientInfo_V1(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Scan_get_PatientInfo_V1`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//手术查询
export function Oper_Get_Operlist(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Oper_Get_Operlist`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 会诊单查询 
export function Consultation_Get_list(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Consultation_Get_list`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//会诊单查询详情 
export function Consultation_Get_MX(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Consultation_Get_MX`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//生命体征查询 
export function EMR_Nusing_GetVitaList(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nusing_GetVitaList`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 生命体征录入 
export function Ward_Getphysiorcd(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Ward_Getphysiorcd`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//生命体征录入明细
export function Ward_GetphysiorcdInfo_Detail(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Ward_GetphysiorcdInfo_Detail`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

/*
生命体征录入保存
*/
export function EMR_Nursing_Savephysiorcd(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_Savephysiorcd`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//护理文书 --- 模板名称 
export function PingGuMoBan_list(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PingGuMoBan_list`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
/*
	护理文书 --- 模板名称标题
*/
export function PingGuMoBanBiaoTi_list(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PingGuMoBanBiaoTi_list`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 护理文书 --- 模板名称内容 PingGuMoBanNeirong_list
export function PingGuMoBanNeirong_list(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PingGuMoBanNeirong_list`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//护理文书 --- 评估记录
export function PingGu_list(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PingGu_list`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
/*
	护理文书 --- 评估记录详情标题
*/
export function PingGuJiLuBiaoTi_ZongHelist(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PingGuJiLuBiaoTi_ZongHelist`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
/*
	护理文书 --- 评估记录详情内容
*/
export function PingGuJiLuNeiRong_ZongHelist(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/PingGuJiLuNeiRong_ZongHelist`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//ZongHeMoBanBaoCun
export function ZongHeMoBanBaoCun(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/ZongHeMoBanBaoCun`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//体温单
export function EMR_Nusing_GetListOfPHItem(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nusing_GetListOfPHItem`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 护理信息查询
export function GetHuLiInfo(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/GetHuLiInfo`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 护理信息查询保存
export function ChanggeHuLiInfo(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/ChanggeHuLiInfo`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 停医嘱
export function NSC_Stop(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/NSC_Stop`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 执行医嘱EMR_Nursing_ScanPSaveOrder
export function EMR_Nursing_ScanPSaveOrder(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_ScanPSaveOrder`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 医嘱执行收费判断initDataRowDT
export function GetDataBind(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/GetDataBind`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//医嘱执行收费判断GetSelectDataBind
export function GetSelectDataBind(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/GetSelectDataBind`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//initDataRowDT
export function initDataRowDT(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/initDataRowDT`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//isChargeMrnDT
export function isChargeMrnDT(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/isChargeMrnDT`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
// 医嘱执行直接执行EMR_Nursing_ScanPSaveOrder_NS1
export function EMR_Nursing_ScanPSaveOrder_NS1(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_ScanPSaveOrder_NS1`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//Nur_orderdo_zhongduan
export function Nur_orderdo_zhongduan(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Nur_orderdo_zhongduan`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}
//Nur_orderdo_huifu
export function Nur_orderdo_huifu(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Nur_orderdo_huifu`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//Nur_orderdo_jieshu_V1
export function Nur_orderdo_jieshu_V1(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/Nur_orderdo_jieshu_V1`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 双签执行EMR_Nursing_SaveOrderBU_NS1
export function EMR_Nursing_SaveOrderBU_NS1(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_SaveOrderBU_NS1`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

//麻药执行EMR_Nursing_SaveOrderMaZui_NS1
export function EMR_Nursing_SaveOrderMaZui_NS1(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_SaveOrderMaZui_NS1`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}

// 任务清单执行EMR_Nursing_SaveOrder_New_NS1
export function EMR_Nursing_SaveOrder_New_NS1(data) {
	return fetch(data, {
		url: `${them}Service_Android.asmx/EMR_Nursing_SaveOrder_New_NS1`,
		method: 'post',
		header: {
			"Content-Type": "application/x-www-form-urlencoded",
			"Token": uni.getStorageSync('token')
		}
	})
}